<template>
  <div class="conceal">
    <div class="services-info" ref="maxHeight">
      <div v-for="item in services" :key="item.name" class="services-box">
        <div class="tag">
          <span>{{ item.name }}</span>
        </div>
        <div class="content">
          <span>{{ item.description }}</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ServicesInfo',
  props: {
    services: {
      type: Array,
      default() {
        return []
      }
    }
  },
  methods: {
    getHeight() {
      return this.$refs.maxHeight.offsetHeight
    }
  }
}
</script>

<style lang="scss" scoped>
.services-info {
  padding: 0 0.3rem;
  color: #797d82;
  margin-top: 0.15rem;
  .services-box {
    display: flex;
    padding-bottom: 0.15rem;
    .tag {
      flex: 1;

      span {
        border: 1px solid #ffb232;
        color: #ffb232;
        font-size: 12px;
        border-radius: 3px;
        position: relative;
        top: 3px;
        padding: 0.02rem;
      }
    }
    .content {
      flex: 4;
    }
  }
}
</style>